package com.elock.service.serviceImpl;

import java.util.Date;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.elock.base.core.Page;
import com.elock.base.core.Pageable;
import com.elock.base.core.service.impl.BaseServiceImpl;
import com.elock.dao.ElockRealtimeStatusDao;
import com.elock.entity.ElockRealtimeStatus;
import com.elock.service.ElockRealtimeStatusService;

/**
 * 锁实时状态
 * @author 仁德
 */
@Service("elockRealtimeStatusServiceImpl")
public class ElockRealtimeStatusServiceImpl extends BaseServiceImpl<ElockRealtimeStatus>
		implements ElockRealtimeStatusService {

	@Resource(name = "elockRealtimeStatusDao")
	private ElockRealtimeStatusDao elockRealtimeStatusDao;

	@Override
	@Transactional(readOnly = true)
	public Page<Map<String, Object>> findPage(String ids, String carIds,
			Pageable pageable) {
		return elockRealtimeStatusDao.findPage(ids, carIds, pageable);
	}

	@Override
	@Transactional(readOnly = true)
	public List<Map<String, Object>> findList(String ids, String carIds, Date elockDate) {
		return elockRealtimeStatusDao.findList(ids, carIds, elockDate);
	}
}
